// tradeMark 品牌管理模块
import request from "@/utils/request";

// 获取品牌列表接口     URL： /admin/product/baseTrademark/{page}/{limit}
export const reqTradeMark = (page,limit) => {
    return request({
        url: `/admin/product/baseTrademark/${page}/${limit}`,
        method: 'get'
    })
}

// 添加品牌    /admin/product/baseTrademark/save      post    携带两个参数：品牌名称、品牌lOGO
export const reqAddTraderMark = (tradeMark) => {
        return request({
            url:'/admin/product/baseTrademark/save',
            method:'post',
            data:tradeMark
        })
}

// 修改品牌    /admin/product/baseTrademark/update    put   携带三个参数    id、品牌名称、品牌logo
export const reqUpdateTradeMark = (tradeMark) => {
    return request({
        url:'/admin/product/baseTrademark/update',
        method:'put',
        data:tradeMark
    })
}

// 删除品牌     /admin/product/baseTrademark/remove/{id}   delete
export const reqDeleteTradeMark = (id) => {
    return request({
        url:`/admin/product/baseTrademark/remove/${id}`,
        method:'delete'
    })
}




